home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7699 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  2.7 KB  |  83 lines

  1.  
  2. To: hguijt@nijmegen.inter.nl.net,
  3.     comp.sys.amiga.programmer@paris.ICS.UCI.EDU
  4. In-Reply-To: <4l659e$pf2@altrade.nijmegen.inter.nl.net>
  5. Distribution: World
  6. Organization: NONE!
  7. Followup-To: comp.sys.amiga.programmer
  8.  
  9.  
  10. > +On 18-Apr-96 20:30:54 H.Guijt
  11. > +<hguijt@nijmegen.inter.nl.net>
  12. > +wrote in "comp.sys.amiga.programmer"
  13.  
  14. > Call me Hans ;-)
  15.  
  16.  All right, Hans. :)   [ sorry if you got this twice...
  17.                          I had some trouble posting this. ]
  18.  
  19. >> [ snip ]
  20. >>
  21. >> *Why* must it be so that opening a requester HAS to "POP FRONT" the
  22. >> screen it appears on?  In particular if the "popping" program
  23. >> _HASNOFOCUS_ ??
  24.  
  25. > One problem is that it is not possible to open a requester without it also
  26. > grabbing the input focus. Only real windows can be opened that way.
  27.  
  28.  Ahhh... haven't tried using req's yet ;)
  29.  
  30.  That could be thought of as a "flaw"
  31.  
  32.  
  33. >> IMHO: If your program has lost focus (you got a IDCMP_INACTIVEWINDOW)
  34. >> then
  35. >>       _DON'T_ do ScreenToFront(...) - AT ALL - !
  36.  
  37. > This is a nasty problem, because the requester always grabs the focus.
  38. > *If* it has to do that, I also prefer to see it happening.
  39.  
  40.  An idea: POP the screen to front BEFORE attempting to open the requester or
  41.  window.  If using requesters (=no possibility to open INACTIVE) that should
  42.  be _required_. (Is this really a _good_ idea ;-) ? )
  43.  
  44.   That way one has some time to react on things happening, instead of just
  45.  having "the rug pulled out" on you.
  46.  
  47. e.g.
  48.  
  49.  /* about to open a requester */
  50.  
  51.  if (WindowFlags & INACTIVE)  /* has the user gone working elsewhere? */
  52.      {
  53.      ScreeToFront(Window.screen);    /* get user's attention */
  54.      WindowToFront(Window);          /* ?? :Not good IMO */
  55.      Delay(30);                      /* 1/2 sec, too long/short? */
  56.      }
  57.  
  58.  OpenRequest(...);                   /* display req */
  59.  
  60. > Are you perchance running ReqTools? In that case you could try to
  61. > deactivate the screentofront option in the prefs window.
  62.  
  63.   Yes; and I have all OFF, as it has been for *very* long.
  64.  
  65. ---
  66. NOTE: I wrote this before reading John Hendrikx's posting Re:
  67.       "Stealing the input-focus."
  68.  
  69.       His idea is really good, IMO.
  70. ---
  71. Kind regards/Mvh
  72. /Hannu E.K. Nevalainen, Amiga user since '85.   /*1996-04-19@22:58CET*/
  73. >> Inform yourself... http://www.amiga.de/      /*Thor$ver[1642]*/
  74. ----------------  rexx:random(64 tags) -> "DOS-info_nFiles" ----------------
  75. | NOTE:        |
  76. | Some over-   | Q: How many files can a MSDOS formatted HD store?
  77. | head has to  | A: Theoretically; HD-Size/Cluster-Size.
  78. | be accounted |   --- _/singlepartitionfigures/_ ---
  79. | for on both  | MSDOS: A 850MB disk can store 850M/32K = 27,200 files
  80. | systems; of  | Amiga: 0.5K blocks; 850M/1K = 870,400 files  *8-O)
  81. | diff. causes.|   #Amiga:Max512bytes/file.PC:Max 32K/file.#
  82.  
  83.